#include<stdio.h>
int main() {
	int a = 0;
	scanf("%d", &a);
	int sum = 0;
	sum = a * 10000 + 2 * a * 1000 + 3 * a * 100 + 4 * a * 10 + 5 * a;
	printf("%d", sum);
	return 0;
}
